package objects;

import objects.misc.MetodaNiePowinnaBycWywolana;

import com.badlogic.gdx.math.Circle;
import com.badlogic.gdx.math.Vector2;

public class Explosion extends UnrealObject {
	private Circle bound;
	
	
	public Explosion (float x, float y, float rad) {
		bound = new Circle (x,y,rad);
	}
	public Circle getBound() {
		return bound;
	}
	
	@Override
	public Vector2 getOrgin() {
		if ( super.orgin == null ) {
			super.orgin = new Vector2(bound.x,bound.y);
		}
		return super.orgin;
		
	}

	@Override
	public Vector2 getPosition() {
		if ( super.position == null ) {
			super.position = new Vector2(bound.x-bound.radius/2 , bound.y-bound.radius/2);
		}
		return super.position;
	}
	@Override
	public boolean isPushable() {
		return false;
	}

	@Override
	public Vector2 getMoveVector() {
		throw new MetodaNiePowinnaBycWywolana();
	}

	@Override
	public void doUpdate() {
		/* powinno byc puste tu */
		//throw new MetodaNiePowinnaBycWywolana();
	}

	@Override
	public void setActive(boolean k) {
		super.active = k;
	}

	@Override
	public boolean isActive() {
		return super.active;
	}

}
